package com.example.demo2.service.diectService;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(queues = {"email_direct"})
public class emailService1 {
    @RabbitHandler
    public void recever(String message){
        System.out.println("email_diecrt接收到队列信息=============》"+message);
    }
}
